﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Categories.aspx.cs" Inherits="Pages_Categories" Title="分类首页"%>
<%@ Import Namespace="CoyoEden" %>
<%@ Register Src="~/Views/CategoryList.ascx" TagName="CategoryList" TagPrefix="uc" %>
<asp:content id="Content1" contentplaceholderid="cphBody" runat="Server">
	<uc:CategoryList ID="CategoryList1" runat="server" />
	<script type="text/javascript">
	<!--
		$(document).ready(function() {
		if (CategoryList) {
			CategoryList.Init({
					Asmx: "<%=Utils.AbsoluteWebRoot %>App_Services/Category.asmx/",
					FatherID: "<%=FatherID %>",
					InitPagerStr: '<%=InitPagerStr %>',
					ViewPath: "<%=CategoryListViewPath %>"
				});
				if (CategoryList.InitPager == "") return;
				var initPager = $.evalJSON(CategoryList.InitPager);
				SimplePager.Init(initPager, CategoryList.Select);
			}
		});

	//-->
	</script>
</asp:content>